package cn.t.service.common;

import cn.t.model.common.UnitDO;
import cn.t.repository.feign.UnitRepository;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 单位(Unit)领域服务
 *
 * @author t
 * @since 2024-06-12 13:33:03
 */
@Slf4j
@Service
@AllArgsConstructor
public class UnitService {

    private final UnitRepository repository;

    public List<UnitDO> getUnit(String type) {
        return repository.getUnit(type);
    }
}
